/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-05-18
 * Time: 17:44
 */
public class Date {
    private int year;
    public int month;
    public int day;
    static int a=10;
static  {
    a=20;
}
    public Date(int year) {
        this.year = year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public static int getA() {
        return a;
    }

    public int getYear() {
        return year;
    }

    @Override
    public String toString() {
        return "Date{" +
                "year=" + year +
                ", month=" + month +
                ", day=" + day +
                '}';
    }
}

